package com.zidongxiangxi.rabbit.consumer.config;

/**
 * 消费记录清理配置
 *
 * @author chenxudong
 * @date 2020/11/07
 */
public class ConsumeRecordClearConfig {
	/**
	 * 保留时长，单位：天
	 */
	private int retentionPeriod = 30;

	/**
	 * 每次操作清理的数量
	 */
	private int clearBatchSize = 20;

	/**
	 * 执行清理任务的周期，单位毫秒，默认300000
	 */
	private long workPeriod = 300000;

	public int getRetentionPeriod() {
		return retentionPeriod;
	}

	public void setRetentionPeriod(int retentionPeriod) {
		this.retentionPeriod = retentionPeriod;
	}

	public int getClearBatchSize() {
		return clearBatchSize;
	}

	public void setClearBatchSize(int clearBatchSize) {
		this.clearBatchSize = clearBatchSize;
	}

	public long getWorkPeriod() {
		return workPeriod;
	}

	public void setWorkPeriod(long workPeriod) {
		this.workPeriod = workPeriod;
	}
}
